﻿using System;
using System.Linq;
using Wicresoft.EKA.MVCExtensions;
using Wicresoft.EKA.ITSM.Business;
using System.Collections.Generic;

namespace Wicresoft.EKA.ITSM.BusinessImpl
{
    public class SMGXJPlanObjectTemplate : Base, ISMGXJPlanObjectTemplate
    {
        protected override void Dispose(bool disposing)
        {
        }

        public List<SMGXJPlanObjectTemplateModel> GetObjectTemplateList(string Qual)
        {
            var proxy = this.GetARProxy<SMGXJPlanObjectTemplateModel>();
            var list = proxy.GetListEntry(Qual, new List<uint> { 
                    SMGXJPlanObjectTemplateModel.RequestID_ID,
                    SMGXJPlanObjectTemplateModel.cChr_Type_ID,
                    SMGXJPlanObjectTemplateModel.cChr_DeviceName_ID,
                    SMGXJPlanObjectTemplateModel.cChr_Classification_ID,
                    SMGXJPlanObjectTemplateModel.cChr_Location_ID,
                    SMGXJPlanObjectTemplateModel.cChr_IP_ID,
                    SMGXJPlanObjectTemplateModel.cChr_Hostname_ID,
                    SMGXJPlanObjectTemplateModel.cChr_Use_ID,
                    SMGXJPlanObjectTemplateModel.cChr_SQLVersion_ID,
                    SMGXJPlanObjectTemplateModel.cChr_DiskLable_ID,
            }).ToList();
            return list;
        }
    }
}
